package com.ytjj.qmyx.admin.mapper;

import java.util.List;

import com.ytjj.qmyx.admin.model.AdminRoleRelation;
import com.ytjj.qmyx.admin.model.AdminRoleRelationExample;
import com.ytjj.qmyx.admin.model.Role;
import org.apache.ibatis.annotations.Param;

public interface AdminRoleRelationMapper {
    long countByExample(AdminRoleRelationExample example);

    int deleteByExample(AdminRoleRelationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AdminRoleRelation record);

    int insertSelective(AdminRoleRelation record);

    List<AdminRoleRelation> selectByExample(AdminRoleRelationExample example);

    AdminRoleRelation selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AdminRoleRelation record, @Param("example") AdminRoleRelationExample example);

    int updateByExample(@Param("record") AdminRoleRelation record, @Param("example") AdminRoleRelationExample example);

    int updateByPrimaryKeySelective(AdminRoleRelation record);

    int updateByPrimaryKey(AdminRoleRelation record);

    int insertList(List<AdminRoleRelation> adminRoleRelation);

    List<Role> getRoleListByAdminId(Integer adminId);

    List<Integer> selectById(Integer id);

    void deleteByAdminId(@Param("adminId") Integer adminId);
}